package com.yulongtian.createMode.Factory_Method_Pattern.after;

/**
 * @author YulongTian
 * @date 2022/7/9 - 17:23
 */
public class Clients {
    public static void main(String args[]) {
        LoggerFactory factory;
        Logger logger;
        factory = (LoggerFactory)XMLUtil.getBean(); //getBean()的返回类型为Object，需要进行强制类型转换
        logger = factory.createLogger();
        logger.writeLog();
    }
}
